//fromEntries 可以将一个键值对数组转化为一个对象
const entries = [ [ 'a', 1 ], [ 'b', 2 ], [ 'c', 3 ] ];
const obj = Object.fromEntries(entries);
console.log(obj)